<!-- 
 * @description: 
 * @fileName: NeighbourA.vue 
 * @author: nsl 
 * @date: 2025-04-29 09:12:31
 * @version: V1.0.0 
!-->
<template>
  <div>
    <div>--------------- in NeighbourA begin --------------</div>
    <template v-for="(item, index) in names">
      label={{ item }}:
      <el-input v-model="filterRef[item]"></el-input>
    </template>
    <div>----------分隔符--------------</div>
    {{ filterRef }}
    <div>--------------- in NeighbourA end --------------</div>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
const filterRef = ref({});
const names = ["name", "age"];

function getFilterRef() {
  return filterRef;
}

// 暴露的属性和方法
defineExpose({ filterRef, getFilterRef });
</script>
<style lang="scss" scoped></style>
